export default {
  state: {
    token: ''
  },
  getters:{},
  mutations: {
    setToken: (state, newToken) => {
      state.token = `${newToken}`;
      try {
        localStorage.token = `${newToken}`;
      } catch (error) {
        console.log(error)
      }
    }
  }
}